var Lock = function () {
    return {
        //main function to initiate the module
        init: function () {
             $.backstretch([
		        Public+"/Admin/img/bg/1.jpg",
		        Public+"/Admin/img/bg/2.jpg",
		        Public+"/Admin/img/bg/3.jpg",
		        Public+"/Admin/img/bg/4.jpg"
		        ], {
		          fade: 1000,
		          duration: 8000
		      });
        }

    };

}();

$(document).ready(function(e) {	//阻止浏览器后退
	var counter = 0;
	if (window.history && window.history.pushState) {
		$(window).on('popstate', function () {
			window.history.pushState('forward', null, '#');
			window.history.forward(1);
			$("#label").html("第" + (++counter) + "次单击后退按钮。");
		});
	}
	window.history.pushState('forward', null, '#'); //在IE中必须得有这两行
	window.history.forward(1);
}); 